package task09;

public class FOR_CUNQIAN {
    public static void main(String[] args) {
//        天数days，总共多少钱
        int day=1;
        float money=2.5f;
        while (money<100)
        {
            money= (float) (money+2.5);
        day++;
//        考虑5天的倍数，要花去6元
            if(day%5==0)
            {
                money=money-6;
            }
        }
        System.out.println("第"+day+"天，存了"+money);

    }


}
